﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package Display.UpgradesUI {
    import flash.utils.*;
    import Classes.*;
    import org.aswing.ext.*;

    public class UpgradesInventoryCellFactory implements GridListCellFactory {

        private var m_dataList:Array;
        private var m_index:int;
        private var m_assets:Dictionary;

        public function UpgradesInventoryCellFactory(_arg1:Array, _arg2:Dictionary){
            this.m_dataList = _arg1;
            this.m_assets = _arg2;
            this.m_index = 0;
        }
        public function createNewGridListCell():GridListCell{
            var _local1:Item = (this.m_dataList[this.m_index].item as Item);
            this.m_index++;
            return (new UpgradeInventoryCell(_local1.icon, _local1.localizedName, _local1.cash, Global.player.inventory.getItemCountByName(_local1.name), this.m_assets));
        }

    }
}//package Display.UpgradesUI 
